//ionic angular 核心文件
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';

//引入动画
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
//引入路由配置文件
import { AppRoutingModule } from './app-routing.module';
//引入根组件
import { AppComponent } from './app.component';
//引入HTTP服务
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http'
import{ HttpService } from '../services/http.service';
import{ commService } from '../services/comm.service';
import { WebsocketService } from '../services/websocket.service'
//登录信息的持久化服务
import { LoginInfoService } from '../services/login-info.service';
import { PopoverComponent } from '../app/components/popover/popover.component';
import {faceRecognition } from '../app/components/faceRecognition/faceRecognition'
import {commstyleComponent } from '../services/comm.styleComponent';
import {EventService } from '../services/QaService';
import {CommonInterceptor} from "../services/http.interceptor";
import { SignaturePadModule } from 'angular2-signaturepad';

@NgModule({
  declarations: [//声明组件
    AppComponent,
    PopoverComponent,
    faceRecognition
    
  ],
  entryComponents: [PopoverComponent,faceRecognition],//配置不会在模板中使用的组件 ionic3中常用
  imports: [//引入的依赖模块
    // MultiPickerModule,
    BrowserModule, 
    IonicModule.forRoot(), 
    AppRoutingModule,
    HttpClientModule,
    SignaturePadModule,
    BrowserAnimationsModule,
  ],
  providers: [//配置的服务
    WebsocketService,
    HttpService,
    commService,
    EventService,
    LoginInfoService,
    commstyleComponent,
    { provide: HTTP_INTERCEPTORS, useClass: CommonInterceptor,multi:true },
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy },

   
  ],
  bootstrap: [AppComponent]
})
export class AppModule {}
